package io.adrainty.bolee.insurance.feign;

import io.adrainty.bolee.framework.commons.basic.ResultDTO;
import io.adrainty.bolee.insurance.hystrix.WarrantyFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * <p>IWarrantyFeign</p>
 *
 * @author AdRainty
 * @version V1.0.0
 * @description 合同相关Feign
 * @since 2025/8/26 13:52:03
 */

@FeignClient(value = "insurance-mgt", path = "/warranty-feign", fallback = WarrantyFeignHystrix.class)
public interface IWarrantyFeign {

    /**
     * <p>cleanWarranty</p>
     *
     * @param warrantyNo 保单编号
     * @return {@link ResultDTO<Boolean>}
     * @author AdRainty
     * @since 2025/8/26 13:52:03
     */
    @PostMapping("/clean-warranty/{warrantyNo}")
    ResultDTO<Boolean> cleanWarranty(@PathVariable("warrantyNo") String warrantyNo);

}
